#ifndef MG_PWM_H
#define MG_PWM_H

#include "ite/itp.h" //for all ith driver (include GPIO) & MACRO
#include <sys/ioctl.h>
#include <unistd.h>
#include "ite\ith.h"

#define BEE_PWM_Pin		30
#define BEE_GPIO_MODE	4
#define BEE_PWM			ITH_PWM6//PWM模块序号

#define BEE_CMD_ON		1
#define BEE_CMD_OFF		0

//蜂鸣器音效
#define BEE_PWM_Hz			2700UL	//PWM频率（Hz）
#define BEE_PWM_DUTY		50UL	//占空比（%）
#define BEE_PWM_ON_TIME		1200UL	//响时间（us）
//PWM初始化
void Bee_Init(void);
//使能PWM
void PWM_Enable(void);
//设置PWM占空比(0-100)
void PWM_Duty_Set(uint8_t DutyPercent);
//响"滴"
void Bee_Di(void);
//响"滴~~~~"
void Bee_Diiiiii(void);
uint8_t report_Bee_Cmd_dbg(void);
#endif